<?php
/** 
 * $Source: /cvsroot/pn-commerce/pn-commerce/pntemplates/plugins/function.pncCheckoutLinkUrl.php,v $
 * $Author: pcornelissen $
 * $Revision: 1.2 $
 * $Date: 2003/12/08 12:09:47 $
 *
 * Type: Function
 *
 * creates a link to the checkout
 *@return string url
 */
function smarty_function_pncCheckoutLinkUrl($params, &$smarty)
{
    extract($params);

    if( pnModAPILoad('pncommerce','user') )
    {
        return pnModAPIFunc ('pncommerce', 'user','pncModURL',
		    				  array( 'Module'   => 'pncommerce',
			    				     'Section'  => 'user',
				    			     'Function' => 'userinfo' ) );
    }
    else
    {
        $smarty->trigger_error( "pncCheckoutLinkUrl: cannot load pnuserapi" );
        return false;
    }
}
?>
